%nav.navbar.navbar-inverse.navbar-fixed-top{:role => "navigation"}
  .navbar-header
    %button.navbar-toggle{"data-target" => ".navbar-ex1-collapse", "data-toggle" => "collapse", :type => "button"}
      %span.sr-only Toggle navigation
      %span.icon-bar
      %span.icon-bar
      %span.icon-bar
    = link_to admin_root_path, class: 'navbar-brand' do
      = image_tag '/logo.svg'
      后台管理
  .nav.navbar-right.top-nav#admin-right-menu
    %li
      = link_to new_admin_post_path, class: 'create-blog' do
        .fa.fa-pencil.fa-p5
        发表文章
    %li
      = link_to root_path do
        返回博客首页
        .fa.fa-arrow-right.fa-p5
  .collapse.navbar-collapse.navbar-ex1-collapse
    %ul.nav.navbar-nav.side-nav
      %li{class: "#{nav_controller_active(:dashboard)} admin-index"}
        = link_to admin_root_path do
          .fa.fa-dashboard.fa-p5
          管理首页
      %li{class: "#{nav_controller_active(:posts)} admin-post"}
        = link_to admin_posts_path do
          .fa.fa-book.fa-p5
          文章管理
      %li{class: "#{nav_controller_active(:comments)} admin-comment"}
        = link_to admin_comments_path do
          .fa.fa-comments.fa-p5
          评论管理
      %li{class: "#{nav_controller_active(:columns)} admin-column"}
        = link_to admin_columns_path do
          .fa.fa-columns.fa-p5
          分类管理
      %li{class: "#{nav_controller_active(:tags)} admin-tag"}
        = link_to admin_tags_path do
          .fa.fa-tags.fa-p5
          标签管理
      %li{class: "#{nav_controller_active(:pages)} admin-page"}
        = link_to admin_pages_path do
          .fa.fa-list-alt.fa-p5
          页面管理
      %li{class: "#{nav_controller_active(:settings)} admin-setting"}
        = link_to admin_settings_path do
          .fa.fa-cogs.fa-p5
          博客设置
    .sidebar-footer.hidden-small
      = link_to 'https://zoker.io/blogine', class: 'has-tooltip', 'data-original-title' => '更新日志', 'data-placement' => 'top', 'data-toggle' => 'tooltip' do
        %span.fa.fa-rss{'aria-hidden' => 'true'}
      = link_to 'https://zoker.io/blogine#comments', class: 'has-tooltip', 'data-original-title' => '建议反馈', 'data-placement' => 'top', 'data-toggle' => 'tooltip' do
        %span.fa.fa-comments{'aria-hidden' => 'true'}
      = link_to logout_path, method: :delete, class: 'has-tooltip', 'data-original-title' => '退出登录', 'data-placement' => 'top', 'data-toggle' => 'tooltip' do
        %span.fa.fa-sign-out{'aria-hidden' => 'true'}
